/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.mobiubiq.directory.client.object.io;

import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.mobiubiq.directory.client.object.AbstractObject;

/**
 *
 * @author Marnix Renne
 */
public interface ObjectReaderWriter {
    /**
     * 
     * @param object
     * @param outputStream
     * @throws java.io.IOException
     */
    void write(AbstractObject object, DataOutputStream outputStream) throws IOException;
    
    /**
     * 
     * @param inputStream
     * @return
     * @throws java.io.IOException
     */
    AbstractObject read(DataInputStream inputStream) throws IOException;
}
